<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script src="../dist/vue-toast-demo.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <a href="javascript;" @click.prevent="toast()">弹出</a>
    </div>
    <script>
        new Vue({
            el:'#app',
            methods: {
                toast(){
                    this.$toast.show('你好');
                }
            },
            mounted() {
                console.log(this.$toast);
            },
        })
    </script>
</body>
</html>